let config = (function () {
    let ENV = 'DEMO'; // 环境配置 必填项。【DEMO,DEV,TEST,PROD 】 【本地例子，开发，测试，正式】
    let projectName = '_ai_merchant_'; // 必填项 项目的名字，用来区分多个项目，尤其是在cookie
    let version = '1.0.2.1';
    let modalColor = '#5271FF' //弹窗颜色

    let PARAM = {
        'DEMO': {
            BASE_URL: 'http://192.168.52.198:3805',
            API_BASE_URL: 'http://192.168.52.198:9080/',
            API_WS:'ws://192.168.52.198:8081/ws',
            UPLOAD_BASE_URL: 'http://192.168.52.198:9080/upload',
            IMG_URL:'http://192.168.52.198:9080/public/'
        },
        'DEV': {
            BASE_URL: 'https://www.aikor.work/',
            API_BASE_URL: 'https://www.aikor.work/api/',
            API_WS:'wss://www.aikor.work/ws',
            UPLOAD_BASE_URL: 'https://www.aikor.work/api/upload',
            IMG_URL:'https://www.aikor.work/api/public/'
        },
    };
    let tabList = ['device_list','mine'];
    let tabBar = {
        basic:[{
            "pagePath": "device_list",
            "text": "设备",
            "iconPath": "../images/terminal.png",
            "selectedIconPath": "../images/terminal_fill.png"
        },
            {
                "pagePath": "mine",
                "text": "我的",
                "iconPath": "../images/mine.png",
                "selectedIconPath": "../images/mine_fill.png"
            }],
        normal:[
            {
                "pagePath": "device_list",
                "text": "设备",
                "iconPath": "../images/terminal.png",
                "selectedIconPath": "../images/terminal_fill.png"
            },
            {
                "pagePath": "mine",
                "text": "我的",
                "iconPath": "../images/mine.png",
                "selectedIconPath": "../images/mine_fill.png"
            }
        ]
    }
    return {
        ENV,
        PARAM: PARAM[ENV],
        version,
        modalColor
    }
})();

export default config;
